package com.h3c.nem.service;


import com.github.pagehelper.PageInfo;
import com.h3c.nem.dto.PageQueryDTO;
import com.h3c.nem.entity.TbCareNoticeSetting;

import java.util.List;

/**
 * 新员工关怀通知配置
 *
 * @author z22968
 * @date 2022/6/8 15:17
 */
public interface ITbCareNoticeSettingService {
    /**
     * 添加配置
     *
     * @param tbCareNoticeSetting
     * @return void
     * @author z22968
     * @date 2022-06-08 16:59
     */
    void insert(TbCareNoticeSetting tbCareNoticeSetting);

    /**
     * 更新配置
     *
     * @param tbCareNoticeSetting
     * @return void
     * @author z22968
     * @date 2022-06-09 10:56
     */
    void update(TbCareNoticeSetting tbCareNoticeSetting);

    /**
     * 查询配置
     *
     * @param type
     * @param name
     * @return com.h3c.nem.entity.TbCareNoticeSetting
     * @author z22968
     * @date 2022-06-08 17:43
     */
    TbCareNoticeSetting selectOne(TbCareNoticeSetting.SettingType type, String name);

    /**
     * 根据类型查询数据
     *
     * @param type
     * @return java.util.List<com.h3c.nem.entity.TbCareNoticeSetting>
     * @author z22968
     * @date 2022-06-28 11:31
     */
    List<TbCareNoticeSetting> selectByType(String type);

    /**
     * 分页获取数据
     *
     * @param pageQuery
     * @return com.eos.common.util.Result
     * @author z22968
     * @date 2022-06-28 19:10
     */
    PageInfo<TbCareNoticeSetting> selectByPage(PageQueryDTO<TbCareNoticeSetting> pageQuery);

    /**
     * 删除配置
     *
     * @param id
     * @return com.eos.common.util.Result
     * @author z22968
     * @date 2022-06-29 17:42
     */
    void deleteById(String id);
}
